// const vuxLoader = require('vux-loader')
let baseUrl = '/'
// if (process.env.NODE_ENV == 'test') {
//     //     baseUrl = 'https://stest.sinosafe.com.cn/eb-web/vue/smart-device'
//     // process.env.NODE_ENV = 'production'
//         // } else if (process.env.NODE_ENV == 'test') {
//         //     baseUrl = '/eb-web/vue/smart-device'
// }else{
//     process.env.NODE_ENV == 'production'
// }
module.exports = {
    // baseUrl: process.env.NODE_ENV === 'production'
    // ? '/eb-web/vue/smart-device/'
    // : '/',
    baseUrl: baseUrl,
    // assetsDir:"smart-device/",
    // outputDir:"/eb-web/vue/smart-device/",
    // pages: {
        // index: {
        //     // entry for the page
        //     entry: 'src/entry/index/main.ts',
        //     // the source template
        //     template: 'public/index.html',
        //     // output as dist/index.html
        //     filename: 'index.html',
        //     // when using title option,
        //     // template title tag needs to be <title><%= htmlWebpackPlugin.options.title %></title>
        //     title: '华安',
        //     // chunks to include on this page, by default includes
        //     // extracted common chunks and vendor chunks.
        //     chunks: ['chunk-vendors', 'chunk-common', 'index']
        // },
        // when using the entry-only string format,
        // template is inferred to be `public/subpage.html`
        // and falls back to `public/index.html` if not found.
        // Output filename is inferred to be `subpage.html`.
        // index: 'src/entry/index/main.ts',
        //     
        // },
        // pay: 'src/entry/pay/main.ts',
    // },
    // devServer: {
    //     proxy: 'https://agenttest.sinosafe.com.cn'
    // },
    css: {
        loaderOptions: {

            postcss: {
                plugins: [require('postcss-px2rem')({
                    remUnit: 108
                })]
            },
        }
    },
    configureWebpack: config => {
        // vuxLoader.merge(config, {
        //     plugins: ['vux-ui']
        // })
        // key,value自行定义，
        // .set("assets", "src/assets")

    },

}